<?php


namespace models\Exception;


use Exception;

class AbstractException extends Exception
{
    const SIGN_IS_EMPTY = '签名不存在';
    const SIGN_IS_INVALID = '无效签名';
    const SIGN_VERIFY_FAILURE = '解密失败';
    const INVALID_PEM = "无效证书";
    const INVALID_IP = "无效IP";
    const SIGN_INVALID_NO = '403';

    const REQUEST_INVALID = "无效请求";
    const REQUIRED_PARAMETER_IS_MISSING = '缺少必须参数';
    const PARAMETER_IS_INVALID = '包含非法参数';
    const REQUIRED_IS_INVALID_NO = '400';

    const LOGIN_FIRST = '请先登录';
    const LOGIN_FIRST_NO = '999';

    const SECRET_IS_NULL = '验签失败';
    const INVALID_METHOD_NAME = '控制器不存在';
    const INVALID_ACTION_NAME = '接口不存在';
    const INVALID_PARAMETER = '%s参数不合法';
    const API_PARAMETERS_DOES_NOT_CONFIGURATION = '接口不允许访问';

    const UPLOAD_NO_FILE = '请选择文件';
    const UPLOAD_INVALID_FILE_TYPE = '%s是非法上传类型';
    const UPLOAD_INVALID_FILE_MAX_SIZE = '%s超过限定文件大小%max_size';
    const UPLOAD_INVALID_FILE_MAX_WIDTH = '%s超过限定文件宽度%w';
    const UPLOAD_INVALID_FILE_MAX_HEIGHT = '%s超过限定文件高度%h';
    const UPLOAD_INVALID_DESTINATION_DIR = '%s目录不存在';
    const UPLOAD_FILE_MOVE_FAILED = '%s文件移动失败';
    const UPLOAD_FILE_CONVERT_2_WEBP_FALIURE = '%s文件转webp格式失败';
    const UPLOAD_SUCCESS = '%s文件上传成功';
    const UPLOAD_SUCCESS_DESCRIPTION = '%s文件上传成功，请点击按钮返回上个页面';
    const UPLOAD_MAKE_DIR_FAILED = '%s保存路径创建失败';

}
